package com.bw.controller;

import com.bw.domain.Gongy;
import com.bw.mapper.GongyMapper;
import com.bw.service.GongyService;
import com.bw.utils.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/gongy")
@RestController
public class GongyController {
    @Autowired
    GongyService gongyService;
    @RequestMapping("/list")
    public Result list(){
        List<Gongy> list = gongyService.list();
        return Result.success(list);
    }
}
